@extends('layouts.ajax_master')
@section('app_js')
    <script type="text/javascript" src="/resource/js/J_main.js"></script>
    <script type="text/javascript">
        $('#teamTable').dataTable().fnDestroy();
        initDataTables();
    </script>
@stop
@section('content')
    <table id="example" class="table table-striped responsive-utilities jambo_table">

        <thead>
        <tr class="headings">
            <th>
                <input type="checkbox" class="tableflat">
            </th>
            <th width="150px">ID</th>
            <th width="300px">文章标题</th>
            <th width="200px">类型</th>
            <th  width="250px">查看次数</th>
            <th class=" no-link last"><span class="nobr" >操作</span>
            </th>
        </tr>
        </thead>

        <tbody>
        @foreach($info as $k => $inf)
            <tr class="even pointer img-box">
                <td class="a-center ">
                    <input type="checkbox" class="tableflat">
                </td>
                <td class="tr-time">
                    {{$inf->help_id}}
                </td>
                <td class=" ">{{$inf->title}}</td>
                <td class="">
                    @if($inf->type==1)
                        常见问题
                    @else
                        帮助文章
                    @endif
                </td>
                <td class=" ">{{$inf->views}}</td>
                <td class=" last">
                    <a href="/article_edit?help_id={{$inf->help_id}}">编辑</a>
                    <a href="javascript:;" class="delete"  data-help_id="{{$inf->help_id}}">删除</a>

                </td>
            </tr>
        @endforeach
        </tbody>
    </table>